package com.atguigu.spzx.feign.cart;

import com.atguigu.spzx.model.entity.h5.CartInfo;
import com.atguigu.spzx.model.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * ClassName: CartFeignClient
 * Package: com.atguigu.spzx.feign.cart
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/17 17:47
 * @Version 1.0
 */
@FeignClient(value = "service-cart")
public interface CartFeignClient {


    /**
     * /api/order/cart/auth/clearChecked
     * 清空选中的购物车项
     */
    @GetMapping("/api/order/cart/auth/clearChecked")
    public void clearChecked();

    /** /api/order/cart/auth/getAllCkecked
     * 根据token获取所有选中的购物车项
     * @return
     */
    @GetMapping("/api/order/cart/auth/getAllCkecked")
    public List<CartInfo> getAllCkecked();
}
